<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="pageContent">
	<form method="post"
		action="<c:url value='/purchaseInvoice/add?navTabId=purchaseInvoiceList&callbackType=closeCurrent'/>"
		class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>单据编号：</label> <input name="orderNo" type="text" size="30" value="" /> <a class="btnLook"
					href="<c:url value='/showPurchaseOrderLookup'/>" lookupGroup="">查找带回</a>
			</p>
			<p>
				<label>开票单位：</label> <input name="company" type="text" size="30" value="" />
			</p>
			<p>
				<label>开票日期：</label> <input name="invoiceDate" class="date" type="text" readonly="true" dateFmt="yyyy-M-d" /> <a
					class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>收票日期：</label> <input name="takeDate" class="date" type="text" readonly="true" dateFmt="yyyy-M-d" /> <a
					class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>发票号：</label> <input name="invoiceNo" type="text" size="30" value="" />
			</p>
			<p>
				<label>发票类型：</label> <select name="orderType" class="combox">
					<option value="">请选择</option>
					<c:forEach var="item" items="${invoiceTypeList}">
						<option value="${item.type}">${item.type}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>摘要：</label> <input name="ai" type="text" size="30" value="" />
			</p>
			<p>
				<label>所属月份：</label> <input name="abstractMonth" class="date" type="text" readonly="true" dateFmt="yyyy-M"
					value="${currentMonth}" /> <a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>开票方式：</label> <select name="invoiceType" class="combox">
					<option value="">请选择</option>
					<c:forEach var="item" items="${invoiceMethodList}">
						<option value="${item.method}">${item.method}</option>
					</c:forEach>
				</select>
			</p>
			<p>
				<label>订单金额：</label> <input name="orderAmount" type="text" size="30" value="" />
			</p>
			<p>
				<label>开票金额：</label> <input name="amount" type="text" size="30" value="" />
			</p>

		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">确定</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
